Skip to content

TimeAndWeather: Reduce night 2 hours#2391

Merged
wjt merged 3 commits into
mainfrom
shorter-night
Jun 17, 2026
Merged

TimeAndWeather: Reduce night 2 hours#2391
wjt merged 3 commits into
mainfrom
shorter-night

Conversation

@manuq

@manuq manuq commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

Full night is now 6 hours, 2 hours less than before.

Adjust start/stop effects: fog and lights are reduced by 2 hours. While clouds
shadows is reduced by 1 hour, because the fade out looks better when is getting
dark.

TimeAndWeather: Use panel and same font as signs for debug label

Otherwise it is unreadable under some weather conditions. Check the museum for
example.

Add effect schedule resource

To de-hardcode the start/stop times of effects in the script. Also export them
so learners can change them.

Resolves #2355

manuq added 3 commits June 16, 2026 15:31
To de-hardcode the start/stop times of effects in the script. Also export them
so learners can change them.
Otherwise it is unreadable under some weather conditions. Check the museum for
example.
Full night is now 6 hours, 2 hours less than before.

Adjust start/stop effects: fog and lights are reduced by 2 hours. While clouds
shadows is reduced by 1 hour, because the fade out looks better when is getting
dark.
@manuq manuq requested a review from a team as a code owner June 16, 2026 18:59
@manuq

manuq commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator Author

After:
Screenshot From 2026-06-16 15-35-55
Before:
Screenshot From 2026-06-16 15-33-49

@manuq

manuq commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator Author

@PlayMatters would you like to check if this is short enough by using the playable link and going to Fray's End?

@github-actions

Copy link
Copy Markdown

Play this branch at https://play.threadbare.game/branches/endlessm/shorter-night/.

(This launches the game from the start, not directly at the change(s) in this pull request.)

@wjt wjt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

6 in-game hours at the default time scale (1 in-game day = 10 real-world minutes) is 2.5 minutes of night, compared to 8 in-game hours = 3.3 minutes of night.

I tried this and it seems good to me!

Comment on lines +45 to +54
@export_group("Effects Schedule")

## When does the lights on/off effect happens.
@export var lights_schedule: EffectSchedule = preload("uid://cb514qccge0gq")

## When does the cloud shadows effect happens.
@export var clouds_shadows_schedule: EffectSchedule = preload("uid://jytd1cp6ogb3")

## When does the fog effect happens.
@export var fog_schedule: EffectSchedule = preload("uid://bcoehk7j53s33")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great idea!

Comment on lines +109 to 111
debug_canvas_layer.process_mode = (
Node.PROCESS_MODE_INHERIT if show_debug_label else Node.PROCESS_MODE_DISABLED
)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another way to spell this would be:

Suggested change
debug_canvas_layer.process_mode = (
Node.PROCESS_MODE_INHERIT if show_debug_label else Node.PROCESS_MODE_DISABLED
)
debug_canvas_layer.set_process(show_debug_label)

@wjt wjt merged commit f9ffbac into main Jun 17, 2026
7 checks passed
@wjt wjt deleted the shorter-night branch June 17, 2026 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Shorter night time, longer day time

2 participants